package micro.beauty.common.tool.utils;

import java.util.LinkedHashSet;
import java.util.List;

/**
 * @Author: liuliya
 * @CreateDate: 2020/4/26 16:59
 */
public class CollectionUtil {

    public static <T> void removeDuplicates(List<T> list) {
        LinkedHashSet<T> set = new LinkedHashSet<>(list.size());
        set.addAll(list);
        list.clear();
        list.addAll(set);
    }

}
